package ${rootPath}.service.impl;

import ${rootPath}.dao.${entityName}Dao;
import ${rootPath}.model.${entityName};
import ${rootPath}.service.${entityName}Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @描述
* @创建人 wangyue
* @创建时间2019/12/216:28
*/
@Service
public class ${entityName}ServiceImpl implements ${entityName}Service{

@Autowired
private ${entityName}Dao ${entityNameLower}Dao;

@Override
public List<${entityName}> list(${entityName} ${entityNameLower}) {
    return ${entityNameLower}Dao.list(${entityNameLower});
    }

    @Override
    public ${entityName} getById(String id) {
    return ${entityNameLower}Dao.getById(id);
    }

    @Override
    public void insert(${entityName} ${entityNameLower}) {
    ${entityNameLower}Dao.insert(${entityNameLower});
    }

    @Override
    public void update(${entityName} ${entityNameLower}) {
    ${entityNameLower}Dao.update(${entityNameLower});
    }

    @Override
    public int deletebth(String[] id) {
    return ${entityNameLower}Dao.deletebth(id);
    }
    }
